<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>{$site_title}</title>
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="stylesheet" type="text/css" href="http://apps.bdimg.com/libs/blendui/2.0.0/boost.min.css" />
  <link rel="stylesheet" type="text/css" href="{$resource_basic}/css/webapp.css" />
  <script type="text/javascript" src="{$resource_basic}/js/jquery.min.js"></script>
  <script type="text/javascript" src="http://apps.bdimg.com/libs/blendui/2.0.0/boost.min.js"></script>
  
  <style>
  body{ width: 100%; height: 100%; background-image: url(__PUBLIC__/template/default/img/aclover/04_02.png);background-repeat:no-repeat; background-size: 100%; background-color: #fd6ea1; }
  .blend-panel-body, .blend-panel-footer, .blend-panel-header{ border-bottom: 0;}
  #close{ margin-left: 42%; margin-top: -7%; position: absolute;}
  </style>
</head>

<body>
    <div class="blend-dialog-mask" style="opacity: 0.5; height: 2529px; display:block; z-index: 100;"></div>
    <div class="blend-panel-body" id="sharetoshow" style="display:block;position: absolute; z-index: 1000;">
        <div class="blend-panel-center">
            <img id="fenxiang_img" src="__PUBLIC__/template/default/img/aclover/07_02.png" style="width:100%; margin-top:25%;">
            <div id="close" style="width:30px; height:30px;"></div>
        </div>
    </div>


    
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
//分享

wx.config({
    debug: false,
    appId: '{$signPackage["appId"]}',
    timestamp: {$signPackage["timestamp"]},
    nonceStr: '{$signPackage["nonceStr"]}',
    signature: '{$signPackage["signature"]}',
    jsApiList: [
      // 所有要调用的 API 都要加到这个列表中
       'onMenuShareTimeline',
      'onMenuShareAppMessage'
    ]
});


wx.ready(function () {
// 在这里调用 API
    wx.onMenuShareTimeline({
        title: '情人节，发出你的情话让Ta猜...这是今年最火爆的情人节猜情话游戏，赶紧去玩！', // 分享标题
        desc: '情人节，发出你的情话让Ta猜...这是今年最火爆的情人节猜情话游戏，赶紧去玩！', // 分享描述
        link: "{$site_url}{:U('M/aclover/guess_options')}"+"?id="+{$id}+"&from_mid="+{$from_mid}, // 分享链接
        imgUrl: "{$site_url}Public/template/default/img/aclover/wx_shar_logo.jpg", // 分享图标
        success: function () { 
            // 用户确认分享后执行的回调函数，生成红包
            window.location.href = "{:U('M/aclover/create_options',array('iscreated'=>1))}";
        },
        cancel: function () { 
            // 用户取消分享后执行的回调函数
        }
    });
    
    wx.onMenuShareAppMessage({
        title: '情人节，猜猜我想对你说...', // 分享标题
        desc: '猜对了，任由你发落~  猜错了，乖乖听我话~', // 分享描述
        link: "{$site_url}{:U('M/aclover/guess_options')}"+"?id="+{$id}+"&from_mid="+{$from_mid}, // 分享链接
        imgUrl: "{$site_url}Public/template/default/img/aclover/wx_shar_logo.jpg", // 分享图标
        type: '', // 分享类型,music、video或link，不填默认为link
        dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
        success: function () { 
          
            window.location.href = "{:U('M/aclover/create_options',array('iscreated'=>1))}";
        },
        cancel: function () { 
            // 用户取消分享后执行的回调函数
        }
    });

});

</script>
<script type="text/javascript">
    $(document).ready(function(){
        $("#close").bind('click',function(){
            $(".blend-dialog-mask").hide();
            $("#fenxiang_img").hide();
        });
    });
</script>
<?php require_once 'cs.php';echo '<img src="'._cnzzTrackPageView(1256622573).'" width="0" height="0"/>';?>
<include file="Index/foot_analyze"/>
</body>
</html>